package JavaSE;

public class divideApple {
    public static void main(String[] args) {
        int apple = 40, kid = 15;
        apple++;
        kid--;
        int divide = apple / kid;
        int surplus = apple % kid;
        System.out.println("一个小朋友分" + divide + "个苹果");
        System.out.println("剩下" + surplus + "个苹果");

    }
}
